package com.itheima.hw.test4;

public class Test {

    public static void main(String[] args) {
        Dog dog = new Dog();
        Frog frog = new Frog();
        Sheep sheep = new Sheep();

        Breeder breeder = new Breeder();
        breeder.swimGame(dog);
        breeder.swimGame(frog);
        //breeder.swimGame(sheep);//无法参赛


    }
}
